package com.biz.primus.homepage.vo;

import com.biz.primus.base.enums.CommonStatus;
import com.biz.primus.homepage.enums.TimeRangePolicy;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by defei on 2/5/17.
 */
@Data
public class ProgramUpdateReqVo implements Serializable {

    private Long id;

    private String coverId;

    private Long parentId;

    private String name;

    private String description;

    private String sourceId;

    private CoverTemplateData coverTemplateData;

    private CommonStatus status;

    private TimeRangePolicy timeRangePolicy;

    /**
     * 开始时间
     */
    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
